home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_m6770.txt < prev    next >
Text File  |  1994-03-01  |  1KB  |  25 lines

  1. 5 IFsq<>60 ANDsq<>62 THENsq=226
  2. 10 MODE8:DIM:GOSUB900:ERASEb$:DIMb$(1):b$(0)="Reject":b$(1)="Accept":t$="Test     Hß:pÆ=p’  HÆ:pÆ"+CHR$(sq)+"p’":f=5:c$=CHR$(5):DEFCHR$(252)="123E020000":DEFCHR$(253)="2E2A3A0000":r=0:s=0:t=0:u=0
  3. 45 CLS:PRINTt$;
  4. 50 z=r:s$="nÆ":GOSUB500:r=z
  5. 60 z=s:s$="äxÆ":GOSUB500:s=z
  6. 70 z=t:s$="n’":GOSUB500:t=z
  7. 80 z=u:s$="äx’":GOSUB500:u=z
  8. 90 CLS:PRINT"Significance level à[%]";
  9. 95 z=f:s$="à":GOSUB500:f=z:IFf<0 ORf>100 THEN95
  10. 97 CLS:PRINTt$;TAB(0);".....";
  11. 100 p=f/100:IFsq=226 THENp=p/2
  12. 105 sr=0:GOSUB"LIB0:S6410":GOSUB900:IFsr THEN*
  13. 107 z=s/r-u/t:IFsq=226 THENz=ABSz
  14. 110 b=1:v=(s+u)/(r+t):z=z/SQR(v*(1-v)*(1/r+1/t)):GOSUB400:a=z:z=x:GOSUB400:x=z
  15. 120 IF(sq=226 ORsq=62) ANDa>x THENb=0
  16. 122 IFsq=60 THENx=-x:IFa<x THENb=0
  17. 130 z=SGN(sq-60):PRINTc$;a;CHR$(60+z*2+b*(164-z));x;": ";b$(b);:a$=INPUT$(1,@):GOTO45
  18. 400 IFz THENz=ROUND(z,LOG(ABSz)-5)
  19. 410 RETURN
  20. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@10;z:LOCATE0,0:RETURN
  21. 900 ONERRORGOTO910:RETURN
  22. 910 IFERR=1 THENCLS:ONERRORGOTO0
  23. 920 IFERL=500 THENRESUME500
  24. 930 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME45
  25.